<?php
define('TIME_NOW',time());
ini_set ('zend.ze1_compatibility_mode','off');
putenv("Asia/Saigon");
date_default_timezone_set('Asia/Bangkok');

set_magic_quotes_runtime(false);

define('DEVELOPING',true);
define('CHECK_DOMAIN', 0);//check valid domain (tuannk)
define('ROOT_PATH', str_replace(array('core/'),array(''),strtr(dirname( __FILE__ ) ."/",array('\\'=>'/'))));
$webroot=str_replace('\\','/','http://'.$_SERVER['HTTP_HOST'].(dirname($_SERVER['SCRIPT_NAME'])?dirname($_SERVER['SCRIPT_NAME']):''));
$webroot.=$webroot[strlen($webroot)-1]!='/'?'/':'';
define('WEB_ROOT',$webroot);
unset($webroot);

// Master server DB
define('DB_MASTER_SERVER','192.168.3.77:3307');
define('DB_MASTER_USER','baodp');
define('DB_MASTER_PASSWORD','thienhadenhat');
define('DB_MASTER_NAME','baodp');

//Set default charset DB : LATIN / UTF8
define('DB_CHARSET','UTF8');

//my server
$server_list=array(
  'localhost/mcnew/mc.muachung/',
);
define('MEMCACHE_ON', 0);
$memcache_server =  array(
  array("host"=>"123.30.53.21","port"=>"11211")
);
define('MEMCACHE_ID','mMuachung'); // dung lam ID phan biet session giua cac site mini shop
//System Constants
//Session config
/*
 memcache - session memcache
 db - session database
 file - session file
*/
define( 'SESSION_TYPE' , 'file');
define('MEMCACHE_SESSION_HOST', "123.30.53.21");
define('MEMCACHE_SESSION_PORT', "11211");
define('_SESS_TIME_EXPIRE', "10800");

define('DIR_CACHE', ROOT_PATH."_cache/");
define('DIR_MODULE', ROOT_PATH."modules/");
define('PAGE_CACHE_DIR',DIR_CACHE.'pages/');
define('PAGE_CACHE',1);
define('CACHE_ON', 1);
define('CACHE_DB', 1);
define('REWRITE_ON', 1);//rewrite URL
define('USER_ACTIVE_ON',1); // Bat acctive user qua email

//config image
define('FTP_IMAGE_SERVER','192.168.4.142');
define('FTP_IMAGE_USER','muachung');
define('FTP_IMAGE_PASSWORD','I4DNGhIpUB1ECqtrnyzx');
define('IS_UPLOAD_IMAGE_SERVER', 1); //1=yes:0=no

//defined logo & favicon
define('DEFAULT_SITE_LOGO', WEB_ROOT.'style/images/logo.png');
define('DEFAULT_SITE_FAVICON', WEB_ROOT.'favicon.ico');
define('SITEINFO_FOLDER', 'siteInfo/');

//defined for avatar
define('DEFAULT_IMAGE_PATH', WEB_ROOT.'style/images/default/');

define('FOLDER_PREFIX', 'size');

define('DEFAULT_AVATAR', WEB_ROOT.'style/images/default_avatar.png');

define('AVATAR_FOLDER', 'avatar/');

define('NEWS_FOLDER', 'news/news/');
define('VIDEO_FOLDER', NEWS_FOLDER.'video/');
define('VIDEO_FLASH_FOLDER', 'news/video/');

define('MC_API_KEY', 'd7ad983d2a1922caaca3296dd77a8d0f');
define('MC_PROVINCE', 'http://api.muachung.vn/1.0/province.json?client_id=');
define('MC_GETDEAL', 'http://api.muachung.vn/1.0/get-deal/');
define('MC_GETDEALS', 'http://api.muachung.vn/1.0/get-deals/');

define('FB_API_KEY', '148767051802662');
define('FB_SECRET', '5b861b22cd747e397798d207815e139b');

?>